<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JavaScript 基础知识</title>
    <script src="main.js"></script>
    <script>
        // alert('这是来自内部js的信息')
    </script>

    <style>
        body {
            background-color: cadetblue;
        }
    </style>

</head>

<body>
    <header>
        <h1>JavaScript的基础知识</h1>
    </header>

    <main>
        <section>
            <h2>使用js的3种方式</h2>
            <ul>
                <li>春色远</li>
                <li>夜灯明</li>
                <li onclick="alert('这是来自内嵌js的信息')">繁华十面剩伶仃</li>
            </ul>
        </section>
    </main>


    <footer>

    </footer>
</body>

</html>